﻿<Window x:Class="WPFInterview.QuestionsPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Questions Panel" Height="600" Width="800" WindowStartupLocation="CenterScreen">
    
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close"
                    Executed="CloseCommandHandler"
                    CanExecute="CanExecuteHandler"
                    />            
    </Window.CommandBindings>
    <Grid>
        <DockPanel LastChildFill="True">
            <Menu DockPanel.Dock="Top">
                <MenuItem Header="File">
                    <MenuItem Header="Launch Application Command" Command="ApplicationCommands.Close"/>
                </MenuItem>
            </Menu>
            <Button 
                DockPanel.Dock="Top" 
                Command="ApplicationCommands.Close"
                Content="Launch Command"             
                />
            <ListBox x:Name="_questionsListBox" DockPanel.Dock="Left" Width="200" SelectionChanged="_questionsListBox_SelectionChanged"></ListBox>
            <StackPanel x:Name="_questionPanel"></StackPanel> 
        </DockPanel>
    </Grid>
</Window>
